package school30.ui.forms;

import school30.ui.Painter;
import school30.ui.events.Event;

public abstract class Widget {

    boolean focusable;
    WidgetPosition position;
    Form form;

    public void setFocusable(boolean f) {
        focusable = true;
    }

    public boolean isFocusable() {
        return focusable;
    }
    
    public void setPosition(WidgetPosition pos)
    {
        this.position = pos;
    }

    public WidgetPosition getPosition() {
        return position;
    }

    public Form getForm() {
        return form;
    }

    public void setForm(Form form) {
        this.form = form;
    }

    public void handleEvent(Event e)
    {
        
    }

    public abstract void paint(Painter p);
}
